import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/word/mediation/` + url, ...arg)
export default {
	pageList(data) {
		return request('pageList', data, 'post')
	},
	addOrEdit(data) {
		console.log(data)
		return request('addOrEdit', data, 'post')
	},
	saveDebtorCard(id, debtorCardId) {
		return request('saveDebtorCard/' + id + '?debtorCardId=' + debtorCardId, '', 'get')
	},
	generateMediationWord(id) {
		return request('generateMediationWord/' + id, null, 'get', {
			responseType: 'blob'
		})
	}
}
